/*
*
* CompanyMapper.java
* @date 2019-01-28
*/
package com.lyz.myself.mapper;

import com.lyz.myself.pojo.Po.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CompanyMapper {
    /**
     *
     * @mbg.generated 2019-01-28
     */
    int deleteByPrimaryKey(Integer company_id);

    /**
     *
     * @mbg.generated 2019-01-28
     */
    int insert(Company record);

    /**
     * 增加机构信息
     * @mbg.generated 2019-01-28
     */
    int insertSelective(Company record);

    /**
     *
     * @mbg.generated 2019-01-28
     */
    Company selectByPrimaryKey(Integer company_id);

    /**
     *修改机构信息
     * @mbg.generated 2019-01-28
     */
    int updateByPrimaryKeySelective(Company record);

    /**
     *
     * @mbg.generated 2019-01-28
     */
    int updateByPrimaryKeyWithBLOBs(Company record);

    /**
     *
     * @mbg.generated 2019-01-28
     */
    int updateByPrimaryKey(Company record);

    /**
     *查询所有机构
     * @return
     */
    List<Map<String,String>> selectAllCompany();

    /**
     * 删除机构
     * @param list
     * @return
     */
    int deleteCompany(@Param("list")List<Integer> list,@Param("delete_time") Integer delete_time,@Param("delete_user") Integer delete_user);
}